package file;

import java.io.File;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * User:Mr.Du
 * Date:2022/5/22
 * Time:17:46
 */
public class CheckFile {

    public static void main(String[] args) {
        digui(new File("C:\\Users\\DZT"));
    }

    public static void digui(File file){
        File[] files = file.listFiles();
        for(File f : files){
            if(f.isDirectory()){
                digui(f);
            }else{
                long totalSpace = f.getTotalSpace();
                if(totalSpace > 100000){
                    System.out.println(f.getAbsolutePath());
                }
            }
        }
    }
}

